export function testEquip(actor,equip,slotIndex){
    if(!actor||slotIndex==null)return {};
    let result={};
    let oequip=actor._equips[slotIndex]?.object();
    if(equip||oequip){
        for(let i=2;i<8;++i){
            let rate=actor.paramRate(i)*actor.paramBuffRate(i);
            let diff=(equip?.params[i])??0-(oequip?.params[i])??0;
            result[i]=Math.round(diff*rate);
        }
    }
    return result;
}